/*
 * globals.h
 *
 * Created: 24.03.2014 17:23:20
 *  Author: markus.hufschmid
 */ 


#ifndef GLOBALS_H_
#define GLOBALS_H_

#include "defines.h"
#include "MS5541.h"


extern volatile int state;
extern volatile int menu_state;

extern volatile int pressure_mbar;
extern volatile int temperature;
extern volatile int p_surface_mbar;
extern int dive_time;
extern int duration_of_dive;
extern volatile int new_data;
extern volatile int new_state;
extern coeff_t calib_words;
extern float max_depth;
extern int16_t min_temperature;
extern int16_t shutdown_timer;
extern int32_t surfaced_time;
extern uint16_t desat_time_minutes;
extern uint16_t no_flight_time_minutes;

extern float percentage_N2;

//real time clock
extern volatile int16_t rtc_hour, rtc_min, rtc_sec, rtc_day, rtc_month, rtc_year;

extern bool volatile key_left_flag, key_right_flag, key_down_flag;

extern bool salt_water;

extern uint8_t percentage_O2;

extern float max_partial_O2;

extern float max_operating_depth;

extern float delta_time;

extern log_info_t log_info;


#endif /* GLOBALS_H_ */